//
//  TableParentVC.h
//  NavTab
//
//  Created by  on 13-1-29.
//  Copyright (c) 2013年 __MyCompanyName__. All rights reserved.
//

#import "EGORefreshTableHeaderView.h"
#import "EGORefreshTableFooterView.h"
#import "ParentController.h"
/*
 
  界面包含tableview、下拉刷新控件 、更多刷新
  子类需要重写getData函数，表单元格样式
 
 */



@interface TablePullFreshParentVC : ParentController
<UITableViewDataSource,UITableViewDelegate,EGORefreshTableHeaderDelegate>
{
    BOOL _reloading;

    //是否还有更多的数据
    BOOL isHavingMore;
    //“更多”正在转动
    BOOL isMoreLoading;
    
//    UILabel *itemsNoDataTipLabel;
    
    CGFloat lastContentOffset;
    
    EGORefreshPos freshPos;
    
    
    int page;
}

@property (strong,nonatomic)EGORefreshTableHeaderView *refreshHeaderView;
@property (strong,nonatomic)EGORefreshTableFooterView *refreshFooterView;
@property(strong,nonatomic)IBOutlet UITableView *tableView;
@property(strong,nonatomic)NSMutableArray *dataArray;
@property UITableViewStyle style;
@property(assign,nonatomic) UIViewController *par;

-(void)getData;
-(void)getMoreData;

- (void)doneLoadingTableViewData;


-(void)showRefreshHeader:(BOOL)animated;
-(void)handleFooterPullFresh;
-(void)addFooterPullFresh;
-(void)removeFooterView;
-(void)removeHeaderView;

@end
